<template>
  <div class="home">
    <div class="warp">
      <div class="box">
        <h1>电商后台管理系统</h1>
        <el-input class="input" v-model="input" placeholder="请输入内容" prefix-icon="el-icon-user-solid"></el-input>
        <el-input class="input" placeholder="请输入密码" show-password prefix-icon="el-icon-unlock" v-model="password"></el-input>
        <el-row class="button">
          <el-button class="btn" type="primary" @click="tokens">登录</el-button>
          <el-button class="btn" type="info">重置</el-button>        
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
      password: ''
    };
  },
  mounted() {},
  methods: {
    tokens() {
      this.$router.push("/About");
    },
  },
  components: {},
};
</script>

<style lang='scss' scoped>
.box {
    width: 500px;
    height: 300px;
    background-color: #2b4b6b;
    margin: 100px auto;
    h1 {
        text-align: center;
        margin-top: 5px;
    }
    .input {
        width: 350px;
        margin-left: 80px;
        margin-top: 20px;
    }
    .button {
        margin-top: 20px;
        text-align: center;
    }
}
</style>


